-
Notifications
You must be signed in to change notification settings - Fork 106
release: 2.0.0 #466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
stainless-app
wants to merge
15
commits into
main
Choose a base branch
from
release-please--branches--main--changes--next
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
release: 2.0.0 #466
stainless-app
wants to merge
15
commits into
main
from
release-please--branches--main--changes--next
+41,460
−19,386
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7c0b462
to
f623bca
Compare
4d4c42d
to
240ceb2
Compare
refactor(client)!: refactor async auto-pagination refactor(client)!: rename `getNextPage{,Params}` to `nextPage{,Params}` refactor(client)!: swap `nextPage{,Params}` to return non-optional # Migration - If you were referencing the `AutoPager` class on a specific `*Page` or `*PageAsync` type, then you should instead reference the shared `AutoPager` and `AutoPagerAsync` types, under the `core` package - `AutoPagerAsync` now has different usage. You can call `.subscribe(...)` on the returned object instead to get called back each page item. You can also call `onCompleteFuture()` to get a future that completes when all items have been processed. Finally, you can call `.close()` on the returned object to stop auto-paginating early - If you were referencing `getNextPage` or `getNextPageParams`: - Swap to `nextPage()` and `nextPageParams()` - Note that these both now return non-optional types (use `hasNextPage()` before calling these, since they will throw if it's impossible to get another page) There are examples and further information about pagination in the readme.
* structured-outputs: updates and more unit tests. * structured-outputs: repair after bad merge. * structured-outputs: local validation, unit tests and documentation * structured-outputs: changes from code review * structured-outputs: added 'strict' flag * structured-outputs: support for Responses API, review changes * structured-outputs: removed support for Responses params Builder.body function * structured-outputs: extra docs and simpler code * docs: swap primary structured outputs example --------- Co-authored-by: Tomer Aberbach <tomer@stainless.com>
08625ad
to
e123fdd
Compare
4753f99
to
66327c5
Compare
b43b9c9
to
005a643
Compare
50a683a
to
02c6df6
Compare
305706c
to
2b9d5bc
Compare
kwhinnery-openai
previously approved these changes
May 16, 2025
7ead866
to
301a38a
Compare
1d569ea
to
301a38a
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Automated Release PR
2.0.0 (2025-05-18)
Full Changelog: v1.6.1...v2.0.0
⚠ BREAKING CHANGES
AutoPager
class on a specific*Page
or*PageAsync
type, then you should instead reference the sharedAutoPager
andAutoPagerAsync
types, under thecore
packageAutoPagerAsync
now has different usage. You can call.subscribe(...)
on the returned object instead to get called back each page item. You can also callonCompleteFuture()
to get a future that completes when all items have been processed. Finally, you can call.close()
on the returned object to stop auto-paginating earlygetNextPage
orgetNextPageParams
:nextPage()
andnextPageParams()
hasNextPage()
before calling these, since they will throw if it's impossible to get another page)Features
Bug Fixes
deploymentModel
params (d9af1fb)Chores
Documentation
Refactors
This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions